<?php
namespace app\model;

use think\Model;

class ViewHistory extends Model
{
    protected $table = 'view_history';
    protected $autoWriteTimestamp = 'datetime';
    protected $createTime = 'created_at';
    protected $updateTime = false;
    
    // 关联会员
    public function member()
    {
        return $this->belongsTo('app\model\Member', 'member_id');
    }
}